# import os
# import base64
#
# def generate_access_key():
#     return base64.urlsafe_b64encode(os.urandom(12)).decode('utf-8')
#
# def generate_secret_key():
#     return base64.urlsafe_b64encode(os.urandom(32)).decode('utf-8')
#
# AK = generate_access_key()
# SK = generate_secret_key()
#
# print(f"AK: {AK}")
# print(f"SK: {SK}")
import random
import string

class AccessKeyUtil:
    CHARS = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
    LENGTH = 32

    @staticmethod
    def generate_ak():
        return ''.join(random.choice(AccessKeyUtil.CHARS) for _ in range(12))

    @staticmethod
    def generate_sk():
        return ''.join(random.choice(AccessKeyUtil.CHARS) for _ in range(AccessKeyUtil.LENGTH))

def main():
    print("ak:", AccessKeyUtil.generate_ak())
    print("sk:", AccessKeyUtil.generate_sk())

if __name__ == "__main__":
    main()
